#ifndef _LOD_
#define _LOD_

#define LONG_DIST	60
#define MED_DIST	40
#define SMALL_DIST	0

#include <Asset.hpp>
#include <QGLViewer/camera.h>
#include <Vector.hpp>

using qglviewer::Camera;

class LOD
{
  public :
    LOD(const Camera& c, Asset* a, Vector<float> p);
    void calculate();
  private :
    const Camera& cam;
    Asset* root;
    Vector<float> assetPos;
    int lastDist;
};

#endif
